package com.java214.array.stack;

/**
 * @program: JavaData
 * @ClassName TestMyStack
 * @description:
 * @author: tyf19970214
 * @create: 2021-05-04 02:48
 * @Version 1.0
 **/
public class TestMyStack {

    public static void main(String[] args) {
        MyStack stack=new MyStack(4);
        stack.push(23);
        stack.push(32);
        stack.push(1);
        stack.push(90);
        System.out.println(stack.isEmpty());
        System.out.println(stack.isFull());

        System.out.println(stack.look());
        System.out.println(stack.look());
        while (!stack.isEmpty()){
            System.out.print(stack.pop()+",");
        }
        //循环之后数据挨个挨个取出来了,后面就和上面相反
        System.out.println(stack.isEmpty());
        System.out.println(stack.isFull());
    }
}
